package part1.api.object.objecttest;

public class ReplaceAllDemo {
    public static void main(String[] args) {
//        String str = "你TMD臭SB123";
//        String str2 = str.replaceAll("(TMD|SB|[0-9]+)","*");
//        System.out.println(str2);

        String str = "你TMD是个大SB";
        String str2 = str.replaceAll("(TMD|SB|草|[0-9]+)","*");
        System.out.println(str2);
    }
}
